//
//  NSBundle+ChangeEnvironment.m
//  ChangeEnvironmentManager
//
//  Created by simon on 2021/7/21.
//

#import "NSBundle+ChangeEnvironment.h"

@implementation NSBundle (ChangeEnvironment)

+ (instancetype)changeEnvBundle
{
    static NSBundle *bundle = nil;
    if (bundle == nil) {
        bundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:NSClassFromString(@"ChangeEnvironmentManager")] pathForResource:@"ChangeEnvironmentManager" ofType:@"bundle"]];
    }
    return bundle;
}

+ (instancetype)changeEnvStoryboardBundle
{
    static NSBundle *bundle = nil;
    if (bundle == nil) {
        bundle = [NSBundle bundleForClass:NSClassFromString(@"ChangeEnvironmentManager")];
    }
    return bundle;
}

@end
